home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_02
/
8n02018a
< prev
next >
Wrap
Text File
|
1990-02-28
|
548b
|
20 lines
LISTING 1
Widget w;
Arg arglist[10];
Cardinal n;
XmString label1, label2;
extern void saveas_file();
n = 0;
label1 = XmStringCreate("save file",
XmSTRING_DEFAULT_CHARSET);
XtSetArg(arglist[n], XmNdialogTitle, label); n++;
label2 = XmStringCreate("Save as what file?",
XmSTRING_DEFAULT_CHARSET);
XtSetArg(arglist[n], XmNselectionLabelString, label2); n++;
w = XmCreatePromptDialog(parent, "pushbutton1", arglist, n);
XtAddCallback(w, XmNactivateCallback, saveas_file, NULL);